#include "NodeFabric.h"
#include "node.h"
#include "unknown.h"
#include "land.h"
#include "weater.h"

NodeFabric::NodeFabric()
{
    //ctor
}

NodeFabric::~NodeFabric()
{
    //dtor
}

static Unknown  s_unknown;
static Land     s_land;
static Weater   s_weater;

Node* NodeFabric::MakeNode(char type)
{
    switch (type)
    {
        case '.' : return &s_land;
        case '?' : return &s_unknown;
        case '%' : return &s_weater;
    }
    return &s_unknown;
}
